import React, {Component} from 'react';
import Search from './components/Search/Search'
import List from "./components/List/List";

class App extends Component {
    state = {users: [], isFirst: true, isLoading: false, err: ''}

    updateAppState = (stateObj) => {
        this.setState(stateObj)
    }

    render() {
        return (
            <div>
                <div className="container">
                    <Search updateAppState={this.updateAppState}></Search>
                    <List {...this.state}></List>
                </div>
            </div>
        );
    }
}

export default App;